<?php
namespace cms\controllers;

use Yii;
use cms\controllers\AuthController;
use common\behaviors\Files;


class FileController extends AuthController
{
    public function behaviors()
    {
        return [
             // 注册匿名行为，只有行为类名
            Files::className(),

        ];
    }

    /*文件上传*/
    public function actionUpload()
    {
        // P($this->post);
        return $this->upload($this->post, $this->appid, $this->userInfo['com_id'], $this->app_id);
    }
    

    
}
